package ch.pizzapp.kurier.dto;

import org.androidannotations.annotations.EBean;
import org.springframework.util.LinkedMultiValueMap;
import org.springframework.util.MultiValueMap;

@EBean
public class UserDto {

	private String fname;

	private String lname;

	private String companyname;

	private String steet;

	private String number;

	private String zipcode;

	private String city;

	private String email;

	private String phone;

	private String password;

	private Integer type;

	public MultiValueMap<String, String> getMultiValuedMap() {
		MultiValueMap<String, String> mvMap = new LinkedMultiValueMap<String, String>();
		mvMap.add("firstName", this.getFname());
		mvMap.add("lastName", this.getLname());
		mvMap.add("company", this.getCompanyname());
		mvMap.add("street", this.getSteet());
		mvMap.add("hauseNr", this.getNumber());
		mvMap.add("plz", this.getZipcode());
		mvMap.add("city", this.getCity());
		mvMap.add("eMail", this.getEmail());
		mvMap.add("phone", this.getPhone());
		mvMap.add("password", this.getPassword());
		mvMap.add("type", this.getType().toString());

		return mvMap;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getFname() {
		return fname;
	}

	public void setFname(String fname) {
		this.fname = fname;
	}

	public String getLname() {
		return lname;
	}

	public void setLname(String lname) {
		this.lname = lname;
	}

	public String getCompanyname() {
		return companyname;
	}

	public void setCompanyname(String companyname) {
		this.companyname = companyname;
	}

	public String getSteet() {
		return steet;
	}

	public void setSteet(String steet) {
		this.steet = steet;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public String getZipcode() {
		return zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
